package com.parking.common.core.model;

public class RedisKey {
    /**
     * 用户注册验证码
     * */
    public static String userRegisterCode(String phone){
        return "user:register:code:phone:"+phone;
    }

    /**
     * 用户注册验证码(一分钟内是否发送注册短信)
     * */
    public static String userRegisterCodeOnMinute(String phone){
        return "user:register:code:minute:phone:"+phone;
    }

    /**
     * 用户登录验证码
     * */
    public static String userLoginCode(String phone){
        return "user:login:code:phone:"+phone;
    }

    /**
     * 用户登录验证码(一分钟内是否发送注册短信)
     * */
    public static String userLoginCodeOnMinute(String phone){
        return "user:login:code:minute:phone:"+phone;
    }

    /**
     * 用户验证码限制(一小时内发送的验证码)
     * */
    public static String userCodeOnHour(String phone){
        return "user:code:hour:phone:"+phone;
    }

    /**
     * 一小时内发送短信的总次数
     * */
    public static String sendNumbers(String phone){
        return "sendCode:numbers:phone:"+phone;
    }

    /**
     * 出租客注册验证码
     * */
    public static String rentersRegisterCode(String phone){
        return "renters:register:code:phone:"+phone;
    }

    /**
     * 出租客注册验证码限制(分钟)
     * */
    public static String rentersRegisterCodeOnMinute(String phone){
        return "renters:register:code:minute:phone:"+phone;
    }

    /**
     * 出租客登录验证码
     * */
    public static String rentersLoginCode(String phone){
        return "renters:login:code:phone:"+phone;
    }

    /**
     * 出租客登录验证码限制(分钟)
     * */
    public static String rentersLoginCodeOnMinute(String phone){
        return "renters:login:code:minute:phone:"+phone;
    }

    /**
     * 出租客验证码限制(小时)
     * */
    public static String rentersCodeOnHour(String phone){
        return "renters:code:hour:phone:"+phone;
    }

    /**
     * 订单车位锁
     * */
    public static String orderStallLock(Integer stallInfoId){
        return "lock:stall:order:stallInfoId:"+stallInfoId;
    }

    /**
     * 平台当日收入统计
     * */
    public static String platformIncome(){
        return "statistic:platform:income";
    }

    /**
     * 平台当日车位小时数统计
     * */
    public static String platformStallHour(){
        return "statistic:platform:stall:hour";
    }

    /**
     * 物业未处理差评数统计
     * */
    public static String certifiedBadComment(Integer certifiedInfoId){
        return "statistic:certified:comment:bad:certifiedInfoId"+certifiedInfoId;
    }

    /**
     * 物业超时车位数统计
     * */
    public static String certifiedOrderOvertime(Integer certifiedInfoId){
        return "statistic:certified:order:overtime:certifiedInfoId"+certifiedInfoId;
    }

    /**
     * 物业当日收入统计
     * */
    public static String certifiedIncome(){
        return "statistic:certified:income";
    }

    /**
     * 物业当日车位小时数统计
     * */
    public static String certifiedStallHour(){
        return "statistic:certified:stall:hour";
    }

    /**
     * 出租客当日收入统计
     * */
    public static String rentersIncome(){
        return "statistic:renters:income";
    }

    /**
     * 出租客当日车位小时数统计
     * */
    public static String rentersStallHour(){
        return "statistic:renters:stall:hour";
    }
    /**
     * 当前登录管理员角色信息
     * */
    public static String platformRole(String platformId){return "platform:roleName:platformId:"+platformId;}

    /**
     * 当前登录管理员接口资源信息
     * */
    public static String platformRoleInterface(String platformId){return "platform:role:Interface:platformId:platform"+platformId;}
}
